require(['public/plan/src/plan'],function(){
    require(['ltpl!../tpl/index.html'], function(){
        plan.route("index", {
            beforeOne: function (context){
                console.log("Index 执行一次");
            },
            action: {
                list: function() {
                    console.log("执行index的action list");
                }
            }
        }).childrenRoute("list", {
            beforeOne: function(){
                console.log("list 执行一次");
            },
            action: {
                detail: function(){
                    console.log("执行list的action detail");
                },
                detail2: function(){
                    console.log("执行list的action detail2");
                }
            }
        });
        plan.start();
    });
    
});